home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / biz / swood / FW_Font_eng.lha / FW_Font-e / FontLook.fw.long < prev    next >
Encoding:
Text File  |  1997-08-07  |  4.9 KB  |  208 lines

  1. /* Here you get an overview about your fonts
  2.  © Heiko Schröder / 08/07/97 / Mail: age@thepentagon.com*/
  3.  
  4. Address='FinalW'
  5. Options results
  6.  
  7. STATUS PORTNAME
  8. FW = result
  9. address = FW
  10.  
  11. SIGNAL ON BREAK_C
  12.  
  13. 'ShowMessage 2 0 "FontLook V2.80" "for individual fonts..." "(©) Heiko Schröder - 08/07/97" ":-)" "Ok" "(-:"'
  14. 'ShowMessage 1 1 "A T T E N T I O N !" "The macro needs an empty document!" "Clear the document?" "Yes" "Abort" ""'
  15. if result=2 then call BREAK_C
  16. Cleardoc Force
  17.  
  18. 'ShowMessage 2 0 "codes or layout" "" "" "codes" "layout" ""'
  19. cl=result
  20.  
  21. 'ShowMessage 2 0 "Screen output?" "" "" "normal" "speed" ""'
  22. ba=result
  23.  
  24. 'ShowMessage 1 0 "Do you need perforation signs?" "" "" "Yes" "No" ""'
  25. lm=result
  26.  
  27. /*minimize Window*/
  28. IF ba=2 THEN DO
  29.    status WINDOW
  30.    parse VAR result links oben breite hoehe minbreite minhoehe .
  31.    sizewindow minbreite minhoehe
  32. End
  33.  
  34. GetDocItemPrefs Decimal
  35. Punkt=Result
  36. If Punkt="Comma" then DocItemPrefs Decimal Period
  37.  
  38. Font
  39. a=RC
  40.  
  41. If a=0 then do
  42.    Type d2c(32)
  43.    BackSpace
  44.    status FontPath
  45.    FullFontName=result
  46.    status FontName
  47.    ShortFontName=result
  48.  
  49.    IF ba=2 THEN View 20
  50.  
  51.    Pagesetup Pagetype A4 Orient Tall Pages RightOnly Top 0 Bottom 2.54 Left 0 Right 0
  52.    SectionSetup Top 2.54 Bottom 2.54 Inside 2 Outside 1
  53.  
  54.    GraphicTool
  55.    LinePrefs LineWt .5
  56.    DrawLine 1 2 3.5 20 3.5
  57.    DrawLine 1 2 26 20 26
  58.  
  59.    If lm=1 then DrawLine 1 .5 14.85 1 14.85
  60.  
  61.    TextTool
  62.    If cl=1 then do
  63.  
  64.       Do i=0 to 13
  65.          SetTab i*1.3+0.8 Right
  66.       End
  67.  
  68.       Justify Center
  69.       Font Softsans
  70.       FontSize 18
  71.       Type ShortFontName; NewParagraph; NewParagraph
  72.  
  73.       DO a = 33 BY 14 FOR 16
  74.  
  75.          Font Softsans
  76.          FontSize 8
  77.          zeile = ""
  78.          DO x = a TO a + 13 WHILE x < 256
  79.             zeile = zeile || d2c( 9 ) || x || d2c( 32 ) || d2c( x )
  80.          END
  81.  
  82.          If x = 256 then zeile = zeile || d2c( 9 )
  83.          Type zeile; NewParagraph
  84.  
  85.          Font ShortFontName
  86.          FontSize 24
  87.          zeile = ""
  88.          DO x = a TO a + 13 WHILE x < 256
  89.             zeile = zeile || d2c( 9 ) || d2c( x )
  90.          END
  91.  
  92.          If x = 256 then zeile = zeile || d2c( 9 )
  93.          Type zeile; NewParagraph
  94.       END
  95.  
  96.       FontSize 12
  97.       Type d2c(9); NewParagraph
  98.       Font Softsans
  99.  
  100.       FontSize 8
  101.       Justify Right
  102.       Type Date(O)" - "FullFontName
  103.  
  104.    END
  105.  
  106. /* --------- */
  107.  
  108.    If cl=2 then do
  109.  
  110.       Justify Center
  111.       Font Softsans
  112.       FontSize 18
  113.       Type ShortFontName; NewParagraph
  114.  
  115.       Justify Left
  116.       Font FullFontName
  117.       FontSize 8
  118.       NewParagraph; Type "This is 8-point type - not easy to read!"; NewParagraph
  119.  
  120.       FontSize 9
  121.       Type "9-point type is about the smallest readable size."; NewParagraph /* MiK */
  122.  
  123.       FontSize 10
  124.       Type "With 10-point type, we have a normal text size."; NewParagraph /* MiK */
  125.  
  126.       FontSize 12
  127.       Type "With some fonts, 12-point type is easier to read."; NewParagraph /* MiK */
  128.  
  129.       FontSize 14
  130.       Type "14-point type is good for subheadings."; NewParagraph /* MiK */
  131.  
  132.       FontSize 16
  133.       Type "For larger subheadings, try 16-point type."; NewParagraph /* MiK */
  134.  
  135.       FontSize 18
  136.       Type "18-point type makes nice small headlines."; NewParagraph /* MiK */
  137.  
  138.       FontSize 24
  139.       Type "24-point type is for medium headlines."; NewParagraph /* MiK */
  140.  
  141.       FontSize 36
  142.       Type "36-point is for larger ones."; NewParagraph /* MiK */
  143.  
  144.       FontSize 48
  145.       Type "48-point almost shouts!"; NewParagraph /* MiK */
  146.  
  147.       FontSize 60 /* MiK */
  148.       Type "60-point is huge!"; NewParagraph /* MiK */
  149.  
  150.       FontSize 12
  151.       Font SoftSans
  152.       Type d2c( 32 ); NewParagraph /* MiK */
  153.       NewParagraph; Type "NORMAL"; NewParagraph /* MiK */
  154.  
  155.       FontSize 10
  156.       Font ShortFontName
  157.       Type "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; NewParagraph
  158.       Type "abcdefghijklmnopqrstuvwxyz 1234567890 !@#$%^&*()-+=[]{}/:;,.?"; NewParagraph
  159.       Type "The quick brown fox jumps over the lazy dog."; NewParagraph; NewParagraph; NewParagraph
  160.  
  161.       FontSize 12
  162.       Font SoftSans
  163.       Type "EXTENDED CHARACTERS"; NewParagraph
  164.  
  165.       FontSize 10
  166.       Font FullFontName
  167.       DO j = 128 BY 32 FOR 4 /* MiK */
  168.          Type XRange( d2c( j ), d2c( j + 31 ) ); NewParagraph /* MiK */
  169.       End
  170.       Status BodyTextHeight
  171.       th=result
  172.       FG=26.24-2.113-th
  173.       FG=Trunc(FG*8/0.34)
  174.       FontSize FG
  175.       Type d2c(9)
  176.       Font SoftSans
  177.       FontSize 8
  178.       Type R
  179.       Justify Right
  180.       Type Date(O)" - "FullFontName
  181.    End
  182.  
  183.    call WH
  184.  
  185.    'ShowMessage 2 1 "Whats next?" "" "" "save" "print" "abort"'
  186.    If result=1 then Save
  187.    If result=2 then Print
  188. END
  189.  
  190. 'ShowMessage 2 0 "Thanks for using." "" "" "@-`-" "Please" ":-))"'
  191. 'ShowMessage 2 1 "© Heiko Schröder" "email: age@thepentagon.com" "http://yi.com/home/SchroederHeiko" "Okay" "Yes" ":-))"'
  192.  
  193. EXIT
  194.  
  195. BREAK_C:
  196.    'ShowMessage 1 1 "Macro aborted..." "" "" "I know..." "" ""'
  197.    call WH
  198.    EXIT
  199.  
  200. WH:
  201.    If ba=2 then do
  202.       View
  203.       Redraw
  204.       sizewindow breite hoehe
  205.    End
  206.    If Punkt="Comma" then DocItemPrefs DECIMAL Comma
  207. Return
  208.